﻿using AutoMapper;
using ECommerce.Web;
using Machine.Specifications;

namespace Object_mapping_specs
{
    [Subject("Object mapping")]
    public class When_auto_mapper_has_been_configured
    {
        Establish context = () =>
            {
                Bootstrapper.RegisterObjectMappings();
            };

        It should_map_successfully = () =>
            {
                Mapper.AssertConfigurationIsValid();
            };
    }
}
